<template>
    <uxt-page :title="title">
        <uxt-bar-group title="设置">
            <uxt-color-selector-bar
                title="颜色"
                desc="bg-color=xx/颜色值"
                v-model="bgColor"
                light
                gradual
            ></uxt-color-selector-bar>
            <uxt-bar title="文字" desc="badge">
                <template slot="right">
                    <uxt-input
                        classes="solid radius margin-xs"
                        :styles="{ width: '200rpx' }"
                        v-model="text"
                    ></uxt-input>
                </template>
            </uxt-bar>
        </uxt-bar-group>
        <uxt-bar-group title="展示">
            <view class="padding bg-white text-center">
                <uxt-divider :bg-color="bgColor">
                    <text :class="[`text-${bgColor}`]">{{ text }}</text>
                </uxt-divider>
            </view>
        </uxt-bar-group>
    </uxt-page>
</template>

<script>
import uxtDivider from '@xtcoder/uxt/components/uxt-divider.vue'
import uxtBarGroup from '@xtcoder/uxt/components/uxt-bar-group.vue'
import uxtBar from '@xtcoder/uxt/components/uxt-bar.vue'
import uxtInput from '@xtcoder/uxt/components/uxt-input.vue'
import uxtColorSelectorBar from '@xtcoder/uxt/components/uxt-color-selector-bar.vue'

export default {
    components: {
        uxtDivider,
        uxtBarGroup,
        uxtBar,
        uxtInput,
        uxtColorSelectorBar
    },
    data() {
        return {
            title: '分隔线',
            bgColor: 'theme',
            text: '分隔线'
        }
    }
}
</script>

<style lang="scss" scoped></style>
